package rensoft.portfolio.client.model.titles;

import static rensoft.gwt.client.lang.GwtLang.event;

import rensoft.gwt.client.event.Event;
import rensoft.gwt.client.event.HasEvents;

public interface Titles extends HasEvents, Iterable<Title> {

  Event<Title> ON_CHANGE = event();

  Title getOpenTitle();

  TitleState getState();

  Title getTitle(TitleState state);

  void open(TitleState viewState);

  public enum TitleState {
    closed, contact, products, services
  }
}
